Optimal. Leaf size=220 \[ -\frac {a f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d^2 \sqrt {a^2+b^2}}+\frac {a f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {a (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b d \sqrt {a^2+b^2}}+\frac {a (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b d \sqrt {a^2+b^2}}+\frac {e x}{b}+\frac {f x^2}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.41, antiderivative size = 220, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {5557, 3322, 2264, 2190, 2279, 2391} \[ -\frac {a f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d^2 \sqrt {a^2+b^2}}+\frac {a f \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {a (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b d \sqrt {a^2+b^2}}+\frac {a (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b d \sqrt {a^2+b^2}}+\frac {e x}{b}+\frac {f x^2}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2190
Rule 2264
Rule 2279
Rule 2391
Rule 3322
Rule 5557
Rubi steps
\begin {align*} \int \frac {(e+f x) \sinh (c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac {\int (e+f x) \, dx}{b}-\frac {a \int \frac {e+f x}{a+b \sinh (c+d x)} \, dx}{b}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {(2 a) \int \frac {e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{b}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {(2 a) \int \frac {e^{c+d x} (e+f x)}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{\sqrt {a^2+b^2}}+\frac {(2 a) \int \frac {e^{c+d x} (e+f x)}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{\sqrt {a^2+b^2}}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {(a f) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{b \sqrt {a^2+b^2} d}-\frac {(a f) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{b \sqrt {a^2+b^2} d}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {(a f) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {(a f) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b \sqrt {a^2+b^2} d^2}\\ &=\frac {e x}{b}+\frac {f x^2}{2 b}-\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}+\frac {a (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d}-\frac {a f \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}+\frac {a f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.63, size = 163, normalized size = 0.74 \[ \frac {x (2 e+f x)}{2 b}-\frac {a \left (d (e+f x) \left (\log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )-\log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )\right )+f \text {Li}_2\left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}-a}\right )-f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )}{b d^2 \sqrt {a^2+b^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.49, size = 500, normalized size = 2.27 \[ \frac {{\left (a^{2} + b^{2}\right )} d^{2} f x^{2} + 2 \, {\left (a^{2} + b^{2}\right )} d^{2} e x - 2 \, a b f \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm Li}_2\left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) + 2 \, a b f \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm Li}_2\left (\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) + 2 \, {\left (a b d e - a b c f\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) + 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) - 2 \, {\left (a b d e - a b c f\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (2 \, b \cosh \left (d x + c\right ) + 2 \, b \sinh \left (d x + c\right ) - 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) - 2 \, {\left (a b d f x + a b c f\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) + {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right ) + 2 \, {\left (a b d f x + a b c f\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (-\frac {a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right ) - {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right )}{2 \, {\left (a^{2} b + b^{3}\right )} d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (f x + e\right )} \sinh \left (d x + c\right )}{b \sinh \left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.12, size = 440, normalized size = 2.00 \[ \frac {f \,x^{2}}{2 b}+\frac {e x}{b}+\frac {2 a e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d b \sqrt {a^{2}+b^{2}}}-\frac {a f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d b \sqrt {a^{2}+b^{2}}}-\frac {a f \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b \sqrt {a^{2}+b^{2}}}+\frac {a f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d b \sqrt {a^{2}+b^{2}}}+\frac {a f \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{2} b \sqrt {a^{2}+b^{2}}}-\frac {a f \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b \sqrt {a^{2}+b^{2}}}+\frac {a f \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{2} b \sqrt {a^{2}+b^{2}}}-\frac {2 a f c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{2} b \sqrt {a^{2}+b^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {1}{2} \, {\left (4 \, a \int \frac {x e^{\left (d x + c\right )}}{b^{2} e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b e^{\left (d x + c\right )} - b^{2}}\,{d x} - \frac {x^{2}}{b}\right )} f - e {\left (\frac {a \log \left (\frac {b e^{\left (-d x - c\right )} - a - \sqrt {a^{2} + b^{2}}}{b e^{\left (-d x - c\right )} - a + \sqrt {a^{2} + b^{2}}}\right )}{\sqrt {a^{2} + b^{2}} b d} - \frac {d x + c}{b d}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\mathrm {sinh}\left (c+d\,x\right )\,\left (e+f\,x\right )}{a+b\,\mathrm {sinh}\left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________